libxl: passthrough: avoid passing through devices not owned by pciback
authorXudong Hao <xudong.hao@intel.com>
Wed, 25 Apr 2012 10:18:45 +0000 (11:18 +0100)
committerXudong Hao <xudong.hao@intel.com>
Wed, 25 Apr 2012 10:18:45 +0000 (11:18 +0100)
commita7c6b15049c42bfd45b2384a57b047d2f605e7ec
treefe75cb461bf7cc3a077b44bc3165cfd94b69837a
parent6c7b878e3c76a452f64f00a0f97c38f469095f42
libxl: passthrough: avoid passing through devices not owned by pciback

This patch makes sure the passthrough device belongs to pciback before
allow them passthrough to the guest.  There are still many other
checks missing.

xm terminates the guest startup process when this type of condition is
found.  This patch just allows the guest to continue to boot but with
no device passthrough.

Signed-off-by: Allen Kay <allen.m.kay@intel.com>
Signed-off-by: Xudong Hao <xudong.hao@intel.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
Committed-by: Ian Jackson <ian.jackson@eu.citrix.com>
tools/libxl/libxl_pci.c